/**
 *
 * Created by yinbin on 2015/11/12.
 */

'use strict';
module.exports = function (grunt) {
    grunt.initConfig({
        pkg: grunt.file.readJSON('package.json'),
        watch: {
            script: {
                files: ["**/**/fragment/*.jade"],
                tasks: ['jade'],
                options: {
                    spawn: false
                }
            }
        },
        jade: {
            node: {
                src: ["**/**/fragment/*.jade"],
                dest: 'public/javascripts/fragment',
                options: {
                    client: true,
                    compileDebug: false
                }
            }
        }
    });
    grunt.loadNpmTasks('grunt-jade-runtime');
    grunt.loadNpmTasks('grunt-contrib-watch');
    grunt.registerTask('default', ['jade','watch']);
};

